function enemy::onLevelLoaded(%this, %scenegraph) {
	%direction = getRandom(1,4);
	
	if (%direction == 1) {
		%this.setLinearVelocityY(-3);
		return;
	}	
	if (%direction == 2) {
		%this.setLinearVelocityX(3);
		return;
	}	
	if (%direction == 3) {
		%this.setLinearVelocityY(3);
		return;
	}	
	if (%direction == 4) {
		%this.setLinearVelocityX(-3);
		return;
	}	
}
